import { Component } from '@angular/core';

@Component(
  {
    selector: 'app-root',
    template: `
    <h1>{{title}}</h1>
    <h2>{{hero.name}} details!</h2>
    <div><label></label></div>
    `,
    styleUrls: ['./app.component.css']
  }
)
export class AppComponent {
  title = 'Tour of heroes';
  hero:Hero={
    id:1,
    name:'windstorms'
  };

}
export class Hero{
  id:number;
  name:string;
}

